﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ImageAppDataModels;
using System.IO;

namespace WpfImageDuplicates
{
    public class DiskDataProvider : ICoreDataProvider 
    {
        public byte[] ReadAllImageBytes(string fileName)
        {
            return File.ReadAllBytes(fileName);
        }

        public byte[] ReadAllThumbnailBytes(string fileName)
        {
            return File.ReadAllBytes(fileName);
        }
        
        public void WriteAllBytes(string fileName, byte[] bytes)
        {
            File.WriteAllBytes(fileName, bytes);
        }

        public void Copy(string orig, string newFileName)
        {
            File.Copy(orig, newFileName);            
        }

        public void Move(string orig, string newFileName)
        {
            File.Move(orig, newFileName);
        }

        public void Delete(string fileName)
        {
            File.Delete(fileName);
        }

        public bool Exists(string fileName)
        {
            return File.Exists(fileName);
        }

        public void SetAttributes(string fileName, FileAttributes attribs)
        {
            File.SetAttributes(fileName, attribs);
        }
    }
}
